package com.jhsw.roadsun.module.business.controller.admin.expressagegoods.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 寄件货物信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class ExpressageGoodsRespVO {

    @Schema(description = "货物ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "8327")
    @ExcelProperty("货物ID")
    private Long id;

    @Schema(description = "寄件ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "21240")
    @ExcelProperty("寄件ID")
    private Long expressageId;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "李四")
    @ExcelProperty("名称")
    private String name;

    @Schema(description = "单价", requiredMode = Schema.RequiredMode.REQUIRED, example = "12021")
    @ExcelProperty("单价")
    private BigDecimal unitPrice;

    @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("数量")
    private Long num;

    @Schema(description = "货物总价格", requiredMode = Schema.RequiredMode.REQUIRED, example = "21680")
    @ExcelProperty("货物总价格")
    private BigDecimal totalPrice;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
